Release 10.1A: OpenEdge Development:
Internationalizing Applications
Progress 4GL
Table A–4 describes the Progress 4GL elements particularly useful for internationalizing and localizing applications. For more information, see the OpenEdge Development: Progress 4GL Reference .
Table A–5 describes the 4GL elements that support multi-byte characters.
Table A–5: 4GL elements that support multi-byte characters 4GL element Description/Multi-byte supportAPPLYstatement Performs the function of a specified key. The expression youAPPLYcan contain multi-byte characters.ASCfunction You can specify source and target code pages. If you do,ASCconverts the value from source to target before returning it to you. Code pages can be multi-byte.For a double-byte character,ASCreturns a value between 256 and 65,535.For a UTF-8 character up to 3 bytes,ASCreturns a value between 65,536 and 15,712,191.For a Unicode supplementary character (4 bytes),ASCreturns a negative integer between -191,905,857 and -258,965,376.For an invalid character,ASCreturns -1.BEGINSoperator Tests a character expression to see whether it begins with a second character expression. Both expressions can contain multi-byte characters.CAPSfunction Changes any lowercase letters in a character string to uppercase. Any double-byte characters in a double-byte code page are not changed. Any UTF-8 character up to 3 bytes is subject to upper easing.CHRfunction You can specify source and target code pages. If you do,CHRconverts the value from source to target before returning it to you. Code pages can be multi-byte.For values between 256 and 44,103,061,439, inclusive,CHRreturns a character, if the value represents a valid combination of lead and trail bytes.For values not representing valid combinations of lead and trail bytes,CHRreturns a null string.For double-byte characters, you can runCHRon one byte at a time.For Unicode supplementary characters,CHRcan accept as input:CODEPAGE-CONVERTfunction Converts a string value from one code page into another.ENCODEfunction Encodes a source character string and returns the encoded character string result. The source string can contain multi-byte characters.Note: If theENCODEfunction processes a string under one code page and then processes the same string under a different code page, the results might not match. For more information, see theENCODEfunction reference entry in the OpenEdge Development: Progress 4GL Reference .ENTRYfunction Returns a character string entry from a character-delimited list based on an integer position. The string can contain multi-byte characters sinceENTRYdetermines the location based on a unit of measure in characters.ENTRYstatement Sets an element in a character-delimited list of strings to a value. All strings and character separators can contain multi-byte characters.FILLfunction Generates a character string made up of a character string repeated a number of times. Both strings can contain multi-byte characters.FORMATphrase Specifies the display format of, among other things, character strings. For a field containing multi-byte characters, you can specify the width in columns.INDEXfunction Returns an integer that indicates the character position of the target string within the source string. The strings can contain multi-byte characters.IS-LEAD-BYTEfunction ReturnsTRUEif the first byte of a string is valid as a lead byte of a multi-byte character. It returnsFALSEif the first byte of a string is not valid as a lead byte.LASTKEYfunction Returns the integer code of the most recent key sequence returned from the keyboard buffer. A key sequence is the set of keystrokes necessary to send one character or function key to the application. TheLASTKEYvalues are available only after the Input Method Editor places the data in the keyboard buffer.LCfunction Changes any uppercase letters in a character string to lowercase. Any double-byte characters in the string are not changed.LEFT-TRIMfunction Removes specified leading characters in a character string. The string and trimmed characters can contain multi-byte characters.LENGTHfunction Returns the number of characters or bytes in a string. You can set the unit of measure to characters, bytes, or columns.LOOKUPfunction Returns an integer that indicates the position of an expression in a list. It returns a 0 if the expression is not in the list. The list, expression, and delimiter can contain multi-byte characters.MATCHESoperator Compares a character expression to a pattern and returns aTRUEvalue if the expression satisfies the pattern criteria. The expression and pattern can contain multi-byte characters.NUM-ENTRIESfunction Returns the number of items in a character-delimited list of strings. All strings can contain multi-byte characters.OVERLAYstatement Overlays a character expression in a field or variable starting at a given position, and optionally for a given length. You can set the unit of measure to characters, bytes, or columns.R-INDEXfunction Returns an integer that indicates the position of the target string within the source string. The search is performed right to left. Both strings can contain multi-byte characters.READKEYstatement Reads one key sequence from an input source and sets the value ofREADKEYto the keycode of that key sequence.READKEYandLASTKEYvalues are available only after the Input Method Editor places the data in the keyboard buffer. (A key sequence is the set of keystrokes necessary to send one character or function key to the application.)REPLACEfunction Lets you replace a substring with another substring. Both substrings can contain multi-byte characters.RIGHT-TRIMfunction Removes specified trailing characters from a character string. The string and trimmed characters can contain multi-byte characters.SEARCHfunction Searches the directories and libraries defined in thePROPATHenvironment variable for a file. Theopsys-filecan contain multi-byte characters.STRINGfunction Converts a source value of any data type to a character value. The source value can contain multi-byte characters.SUBSTITUTEfunction Returns a character string that is made up of a base string plus substitute arguments in the string. The base string and arguments can contain multi-byte characters.SUBSTRINGfunction Extracts a position of a character string from a field or variable. You can set the unit of measure to characters, bytes, or columns.SUBSTRINGstatement Replaces characters in a field or variable with an expression you specify. You can replace the lead bytes or trail byte of the source string. You can set the unit of measure to characters, bytes, or columns.TRIMfunction Removes leading and trailing single-byte spaces in a character string. The string and trimmed characters can contain multi-byte characters.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |